<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/jquery-1.11.2.min.js" ></script>
	</head>
	<body>
		<div class="title">
			<ul>
				<li>1</li>
				<li>2</li>
				<li>3</li>
			</ul>
		</div>
		<div class="content">
			<div >你好</div>
			<div style="display: none;">你好美</div>
			<div style="display: none;">你好帅</div>
		</div>
		<script>
			$(".title ul li").click(function(){
				var index=$(this).index();
				$(".content div").hide();
				$(".content div:nth-child("+(index+1)+")").show();
			})
			
		</script>
	</body>
</html>
